package com.lm.upms.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.lm.common.core.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * 部门信息
 *
 * @author lm
 * @date 2019/5/31
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class SysDept extends BaseEntity<SysDept> {

    @TableId(value = "dept_id", type = IdType.AUTO)
    private Integer deptId;

    /**
     * 部门名称
     */
    @NotBlank(message = "部门名称不能为空")
    private String deptName;

    /**
     * 状态
     */
    private String status;

    /**
     * 排序
     */
    private Integer orderNum;

    private Integer parentId;

    /**
     * 是否删除  -1：已删除  0：正常
     */
    @TableLogic
    private String delFlag;

}
